package org.dromara.crawler.mongo.mongoservice.impl;


import com.mongoplus.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.dromara.crawler.mongo.mongodomain.EventNews;
import org.dromara.crawler.mongo.mongodomain.SemanticExtraction;
import org.dromara.crawler.mongo.mongoservice.EventNewsService;
import org.dromara.crawler.mongo.mongoservice.SemanticExtractionService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class EventNewsServiceImpl extends ServiceImpl<EventNews> implements EventNewsService {

    @Override
    public List<EventNews> queryById(String id) {
        return this.lambdaQuery().eq(EventNews::getId,id).list();
    }

    @Override
    public List<EventNews> queryAll() {
        return this.lambdaQuery().list();
    }
}
